package com.guigu.gulicommon.constant.enumes.res;

import com.guigu.gulicommon.api.BaseResCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 服务器响应码枚举
 */
@Getter
@AllArgsConstructor
public enum ServerResCode implements BaseResCode {
    //----------------------------------------------------------------------------------成功
    //----------------------------------------------------------------------------------失败
    UNKNOWN_EXCEPTION(500, "服务器出现未知错误,请联系工程师解决"),
    SEND_HTTP_REQUEST_FAILED(502, "服务器发送HTTP请求获取资源失败"),
    SERVICE_UNAVAILABLE(503, "服务暂时不可用,请稍后重试"),
    SERVER_BUSY(504, "服务器繁忙,请稍后重试"),
    ;
    private final Integer code;
    private final String msg;
}
